package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "新增用户角色")
public class InsRoleDto {

    @NotBlank(message = "角色名称不能为空",groups = {RoleGroup.class})
    @ApiModelProperty(value = "角色名称")
    private String label;

    @ApiModelProperty(value = "父角色id")
    private String parentId;

    @ApiModelProperty(value = "角色描述")
    @NotBlank(message = "角色描述不能为空",groups = {RoleGroup.class})
    private String roleDesc;

    @ApiModelProperty(value = "排序字段")
    @NotNull(message = "排序字段不能为空",groups = {RoleGroup.class})
    private Integer sort;

    @ApiModelProperty(value = "状态")
    @NotNull(message = "状态不能为空",groups = {RoleGroup.class})
    private Integer status;

    public interface RoleGroup{}
}
